import { DashboardIcon, HomeIcon, UserIcon, UsergroupIcon } from 'tdesign-icons-vue';
import Layout from '@/layouts/index.vue';

export default [
  {
    path: '/business-management',
    component: Layout,
    redirect: '/business-management/enterprise-info',
    name: 'businessManagement',
    meta: {
      title: '企业管理',
      icon: DashboardIcon,
      routeType: 'business',
    },
    children: [
      {
        path: 'enterprise-info',
        name: 'enterprise-info',
        component: () => import('@/pages/business-management/enterprise-info/index.vue'),
        meta: { title: '企业信息', icon: HomeIcon, routeType: 'business' },
      },
      {
        path: 'user',
        name: 'user',
        component: () => import('@/pages/business-management/user/index.vue'),
        meta: { title: '用户', icon: UserIcon, routeType: 'business' },
      },
      {
        path: 'role',
        name: 'role',
        component: () => import('@/pages/business-management/role/index.vue'),
        meta: { title: '角色', icon: UsergroupIcon, routeType: 'business' },
      },
      // {
      //   path: 'register',
      //   name: 'register',
      //   component: () => import('@/pages/business-management/register/components/Register.vue'),
      //   meta: { title: '注册账户', icon: UsergroupIcon, routeType: 'business' },
      // },
      {
        path: 'role/addRole',
        name: 'addRole',
        component: () => import('@/pages/business-management/role/components/AddRole.vue'),
        meta: { routeType: 'business' },
      },
      {
        path: 'role/editRole',
        name: 'editRole',
        component: () => import('@/pages/business-management/role/components/EditRole.vue'),
        meta: { routeType: 'business' },
      },
      {
        path: 'user/addUser',
        name: 'addUser',
        component: () => import('@/pages/business-management/user/components/AddUser.vue'),
        meta: { routeType: 'business' },
      },
      {
        path: 'user/editUser',
        name: 'editUser',
        component: () => import('@/pages/business-management/user/components/EditUser.vue'),
        meta: { routeType: 'business' },
      },
    ],
  },
];

export const routes = 1;
